package com.tender;

import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;
import com.tender.redis.RedisShiroProperties;
import com.tender.properties.SecretConfigProperties;

/**
 * 启动这个，需要启动 100 虚机（nacos + redis）、101 虚机（mysql）
 */
@SpringBootApplication
@EnableEncryptableProperties
@EnableConfigurationProperties({RedisShiroProperties.class,SecretConfigProperties.class})
@MapperScan("com.tender.mapper")
@EnableDiscoveryClient
public class ShiroApplication {

    public static void main(String[] args) {
        System.setProperty("jasypt.encryptor.password", "wb-csd876509");
        ConfigurableApplicationContext applicationContext = SpringApplication.run(ShiroApplication.class, args);
        int i = 0;
    }
}